package com.highspeed.bdk.service.security.user;

import com.bianmaba.spring.data.jpa.service.IBaseService;
import com.highspeed.bdk.bean.base.LocalUserDetails;
import com.highspeed.bdk.bean.entity.security.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * Created by chenjiabin on 2018/3/23.
 */
public interface IUserService extends IBaseService<User, String> {

    LocalUserDetails updateCurrentUserinfo(User entity);

    User findByUsername(String username);

    LocalUserDetails getCurrentUser();
}
